﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GsOrganization.TcpPacket.IPayLoad;

namespace GsOrganization.TcpPacket.PayLoad
{
    public class DeviceLoginReq : ClientBaseReq
    {
        /// <summary>
        /// 设备ID，唯一标识一个设备，用于服务端验证设备身份
        /// </summary>
        public string DeviceId { get; set; }

        /// <summary>
        /// 设备码，唯一标识一个设备，用于服务端验证设备身份
        /// </summary>
        public string DeviceCode { get; set; }

        public string MainBoardId { get; set; }
        public string HardDiskId { get; set; }
        public LocationInfo locationInfo { get; set; }

        /// <summary>
        /// 打印机ID，没有的时候给个空串
        /// </summary>
        public string PrinterId { get; set; } = "";
        public int SoftVersion { get; set; } = 0;
        public int UpsoftVersion { get; set; } = 0;

    }
    public class LocationInfo
    {
        public double Latitude { get; set; }
        public double Longitude { get; set; }
    }
    public class DeviceLoginResp : IResponseData
    {
        /// <summary>
        /// 设备检查结果，非0表示设备错误
        /// </summary>
        public int DeviceValid { get; set; }
        /// <summary>
        /// 设备状态，0-正常，其他不正常
        /// </summary>
        public int DeviceState { get; set; }

        /// <summary>
        /// 设备状态描述
        /// </summary>
        public string DeviceStateDesc { get; set; }
        public string SessionId { get; set; } = "";
    }



}
